home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-11-08 | 4.6 KB | 167 lines | [TEXT/MPS ] |
- #========================================================================================
- #
- # File: ODF Startup
- # Release Version: $ 1.0d11 $
- #
- # Copyright: © 1993, 1995 by Apple Computer, Inc., all rights reserved.
- #
- #========================================================================================
-
- # Set the location of the OpenDoc SDK Folder
- # If the folder can't be found; automatically prompts user for it and
- # remember where the folder was found
-
- if ¬ "{FWOpenDocSDK}" && "`Exists "{PrefsFolder}"FWOpenDocSDK_Folder`"
- Set FWOpenDocSDK "`Catenate "{PrefsFolder}"FWOpenDocSDK_Folder`"
- End
- if ¬ "`Exists "{PrefsFolder}"FWOpenDocSDK_Folder`" || ¬ "`Exists "{FWOpenDocSDK}"`"
- Set exit 0
- Set temp "{Boot}"
- Loop
- Set temp "`(GetFileName "{temp}" -q -d -m "Select ∂"OpenDoc SDK∂" folder?")≥dev:null`"
- if "{temp}"!=""
- Echo -n "{temp}" > "{PrefsFolder}"FWOpenDocSDK_Folder
- Set FWOpenDocSDK "{temp}"
- Else
- exit
- End
- (set x "`Exists "{temp}Interfaces:"`") ≥dev:null
- if "{x}"==""
- Alert ODF - The ∂"{temp}∂" folder does not contain OpenDoc SDK files.
- else
- break
- end
- End
- set exit 1
- End
-
- Set FWOpenDocSDK "`Catenate "{PrefsFolder}"FWOpenDocSDK_Folder`"
- Export FWOpenDocSDK
-
- # {FWODHandMadeIncludes} - The path to the OpenDoc HandMade Includes Folder.
- Set FWODHandMadeIncludes "{FWOpenDocSDK}Interfaces:HandMade:"
- Export FWODHandMadeIncludes
-
- # {FWODIDLIncludes} - The path to the OpenDoc Includes Folder.
- Set FWODIDLIncludes "{FWOpenDocSDK}Interfaces:IDL:"
- Export FWODIDLIncludes
-
- # {FWODCppIncludes} - The path to the OpenDoc CPlusCPlus Includes Folder.
- Set FWODCppIncludes "{FWOpenDocSDK}Interfaces:CPlusPlus:"
- Export FWODCppIncludes
-
- # {FWODPublicUtilitiesIncludes} - The path to the OpenDoc Public Utilities Includes Folder.
- Set FWODPublicUtilitiesIncludes "{FWOpenDocSDK}OpenDoc Utilities:Interfaces:"
- Export FWODPublicUtilitiesIncludes
-
- # {FWODRIncludes} - The path to the OpenDoc RIncludes Folder.
- Set FWODRIncludes "{FWOpenDocSDK}Interfaces:Rez:"
- Export FWODRIncludes
-
- ################################################################################
- # Stuff you probably don't want to mess with
- ################################################################################
-
- # {ODFDev} - The name of the Folder Containing ODF.
- if ¬ "{ODFDev}"
- Set ODFDev "{ODF}:"
- Export ODFDev
- end
-
- # {FWBldEnvDir} - The name of the Folder Containing the build environment
- #
- # (We default to CodeWarrior PPC - Debug. Your build script should reset this.)
- #
- if ¬ "{FWBldEnvDir}"
- Set FWBldEnvDir "{ODFDev}CWPPCDebug:"
- Export FWBldEnvDir
- end
-
- # {FWLibDir} - The path to the ODF Libraries Folder.
- if ¬ "{FWLibDir}"
- Set FWLibDir "{FWBldEnvDir}"Lib:
- Export FWLibDir
- end
-
- # {FWBinDir} - The path to the ODF Binaries Folder.
- if ¬ "{FWBinDir}"
- Set FWBinDir "{FWBldEnvDir}"Bin:
- Export FWBinDir
- end
-
- # {FWToolsDir} - The path to other ODF Tools Folder
- if ¬ "{FWToolsDir}"
- Set FWToolsDir "{ODF}"Tools:Mac:
- Export FWToolsDir
- end
-
- # {FWMakefileName} - The Name of FWBuild's MakeFiles
- if ¬ "{FWMakefileName}"
- Set FWMakefileName "MacMake"
- Export FWMakefileName
- end
-
- # {FWMakefileExt} - The extension of FWBuild's MakeFiles
- if ¬ "{FWMakefileExt}"
- Set FWMakefileExt ".bmk"
- Export FWMakefileExt
- end
-
- # {FWTempDir} - The Location for FWBuild's temporary files
- if ¬ "{FWTempDir}"
- Set FWTempDir "{MPW}"
- Export FWTempDir
- end
-
- # {FWTempExt} - The extension for FWBuild's temporary files
- if ¬ "{FWTempExt}"
- Set FWTempExt ".tmp"
- Export FWTempExt
- end
-
- # {FWAutoTargets} - The name of the auto-targets file
- if ¬ "{FWAutoTargets}"
- Set FWAutoTargets "{FWToolsDir}"autotarg.txt
- Export FWAutoTargets
- end
-
- # {FWPreMake} - The name of FWBuild's Premake file
- if ¬ "{FWPreMake}"
- Set FWPreMake "{FWToolsDir}"MacMake.dfn
- Export FWPreMake
- end
-
- # {FWPostMake} - The name of FWBuild's Premake file
- if ¬ "{FWPostMake}"
- Set FWPostMake "{FWToolsDir}"MacMake.rul
- Export FWPostMake
- end
-
- #
- # {FWPreCompHdrDir} - The name of the Folder Containing Precompiled headers.
- #
- if ¬ "{FWPreCompHdrDir}"
- Set FWPreCompHdrDir ":Precompile∂ Headers:"
- Export FWPreCompHdrDir
- end
-
- # {CFM68KLibraries} - Directory that contains CFM-68K static link libraries.
- if ¬ "{CFM68KLibraries}"
- Set CFM68KLibraries "{MPW}Libraries:CFM68KLibraries:"
- Export CFM68KLibraries
- end
-
- # {SharedLibraries} - Directory that contains "fat" PEF-format import libraries.
- if ¬ "{SharedLibraries}"
- Set SharedLibraries "{MPW}Libraries:SharedLibraries:"
- Export SharedLibraries
- end
-
-
- # {Commands} - Directories to search for commands.
- Set Commands "{FWToolsDir},{Commands}"
- Export Commands
-
- alias Build68KCFM 'FWBuild -SymantecCFM -modelCFM'
-
-